package com.liaoyifan.core.exception;

import java.io.Serial;
import lombok.Getter;

@Getter
public class CoreException extends RuntimeException {

    @Serial private static final long serialVersionUID = 1L;

    private final int code;

    public CoreException(int code, String message) {
        super(message);
        this.code = code;
    }

    public CoreException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }
}
